package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.SsMstXcxStudentLearningProgress;
import com.dingreading.cloud.soms.entity.table.SsMstXcxStudentLearningProgressTableDef;
import com.dingreading.cloud.soms.mapper.SsMstXcxStudentLearningProgressMapper;
import com.dingreading.cloud.soms.service.SsMstXcxStudentLearningProgressService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 小程序学生学习进度表 服务层实现。
 *
 * @author EDY
 * @since 2025-11-03
 */
@Service
public class SsMstSsMstXcxStudentLearningProgressServiceImpl extends BaseServiceImpl<SsMstXcxStudentLearningProgressMapper, SsMstXcxStudentLearningProgress, SsMstXcxStudentLearningProgressTableDef> implements SsMstXcxStudentLearningProgressService {

    @Override
    protected SsMstXcxStudentLearningProgressTableDef getTable() {
        return SsMstXcxStudentLearningProgressTableDef.ssMstXcxStudentLearningProgress;
    }

    @Override
    public List<SsMstXcxStudentLearningProgress> getByMstStoreUid(String mstStoreUid) {
        return getMapper().selectListByCondition(table.storeUid.eq(mstStoreUid));
    }
}
